package com.zqx.state.client;

import com.zqx.state.context.Account;

/**
 * description: 客户端测试类
 * @author zqx
 * @date 2018/09/04
 */
public class Client {

    public static void main(String[] args) {
        Account acc = new Account("张玉娜", 0.0);
        acc.deposit(1000);
        acc.withdraw(2000);
        acc.deposit(3000);
        acc.withdraw(4000);
        acc.withdraw(1000);
        acc.computeInterest();
    }
}
